Wind parameters - configurable hair physics#1893
Closed
Conversation
Contributor
Author
2021-11-30.16-35-14.mp4 |
Contributor
|
Device: Mac m1 The PR is working fine with Hairs. I have attached some videos to see. Also I tested it by changing parameters inside the above provided code too. WhatsApp.Video.2021-12-01.at.2.09.58.PM.2.mp4WhatsApp.Video.2021-12-01.at.2.09.58.PM.1.mp4WhatsApp.Video.2021-12-01.at.2.09.58.PM.mp4-Changed Parameters: WhatsApp.Video.2021-12-01.at.2.09.58.PM.4.mp4WhatsApp.Video.2021-12-01.at.2.09.58.PM.3.mp4It works fine and can be merged. |
Contributor
|
Shipped in #3029 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We can configure wind parameters in scene file with:
{
"type": "application/windsettings",
"content": {
"forceFactor": 1.0,
"direction": [0.1, 0, 0.01],
"gravity": [0, -0.2, 0]
}
},
forceFactor is wind force
direction is amount of variance in x,y,z direction
gravity is fixed amount of gravity added to randomized direction
Related to issue:
#1598
PR for webaverse/metaversefile is here:
webaverse/totum#39
Previous PR is deleted because it is outdated.
Steps for testing:
Add configuration param (described at the begging) to any .scn file.
Observe players hair
Equip another avatar, and observe his/hers hair
Change direction,gravity and forceFactor to see is there any change in behaviour